home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / master.vim < prev    next >
Encoding:
Text File  |  2001-05-10  |  1.4 KB  |  51 lines

  1. " Vim syntax file
  2. " Language:    Focus Master File
  3. " Maintainer:    Rob Brady <robb@datatone.com>
  4. " Last Change:    $Date: 1999/08/13 06:51:26 $
  5. " URL: http://www.datatone.com/~robb/vim/syntax/master.vim
  6. " $Revision: 1.4 $
  7.  
  8. " this is a very simple syntax file - I will be improving it
  9. " add entire DEFINE syntax
  10.  
  11. " For version 5.x: Clear all syntax items
  12. " For version 6.x: Quit when a syntax file was already loaded
  13. if version < 600
  14.   syntax clear
  15. elseif exists("b:current_syntax")
  16.   finish
  17. endif
  18.  
  19. syn case match
  20.  
  21. " A bunch of useful keywords
  22. syn keyword masterKeyword    FILENAME SUFFIX SEGNAME SEGTYPE PARENT FIELDNAME
  23. syn keyword masterKeyword    FIELD ALIAS USAGE INDEX MISSING ON
  24. syn keyword masterKeyword    FORMAT CRFILE CRKEY
  25. syn keyword masterDefine    DEFINE DECODE EDIT
  26. syn region  masterString    start=+"+  end=+"+
  27. syn region  masterString    start=+'+  end=+'+
  28. syn match   masterComment    "\$.*"
  29.  
  30. " Define the default highlighting.
  31. " For version 5.7 and earlier: only when not done already
  32. " For version 5.8 and later: only when an item doesn't have highlighting yet
  33. if version >= 508 || !exists("did_master_syntax_inits")
  34.   if version < 508
  35.     let did_master_syntax_inits = 1
  36.     command -nargs=+ HiLink hi link <args>
  37.   else
  38.     command -nargs=+ HiLink hi def link <args>
  39.   endif
  40.  
  41.   HiLink masterKeyword Keyword
  42.   HiLink masterComment Comment
  43.   HiLink masterString  String
  44.  
  45.   delcommand HiLink
  46. endif
  47.  
  48. let b:current_syntax = "master"
  49.  
  50. " vim: ts=8
  51.